<%@include file="checkSession.jsp"%>

<%
            String uname = request.getParameter("uname");
            String passw = request.getParameter("passw");

            Usuario u = UsuarioMgr.mgr.doLogin(uname, passw);

            if (u != null) {
                session.setAttribute("CURRENT_USER", u);
                response.sendRedirect("index.jsp");
            } else {
                response.sendRedirect("LoginForm.jsp");
            }
%>
